package com.design.decorator;

/**
 * 抽象类装饰角色
 * @author ytj
 * @date 2024/11/27 17:24
 */
public abstract class SsoDecorator implements HandleInterceptor{
    private HandleInterceptor handleInterceptor;

    public SsoDecorator(){}

    public SsoDecorator(HandleInterceptor handleInterceptor){
        this.handleInterceptor=handleInterceptor;
    }

    @Override
    public boolean preHandle(String request, String response, Object handle) {
        return handleInterceptor.preHandle(request,response,handle);
    }
}
